﻿using GWSoft.Clark.EventBus.Common.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GWSoft.Clark.EventBus.Vehicle.Events
{
    public class VehicleCreatedEvent : IEvent
    {
        public VehicleCreatedEvent(string vehicleNum)
        {
            this.Id = Guid.NewGuid();
            this.Timestamp = DateTime.UtcNow;
            this.VehicleNum = vehicleNum;
        }

        public Guid Id { get; }

        public DateTime Timestamp { get; }

        public string VehicleNum { get; }
    }
}
